package com.ecs.core.components.draw;
import com.artemis.PooledComponent;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.glutils.ShaderProgram;

public class SpriteRender extends PooledComponent {
    public TextureRegion region;      // 纹理区域
    public Color color = new Color(1, 1, 1, 1); // 颜色和透明度（默认白色不透明）
    public int sortingOrder = 0;      // 渲染排序
    public boolean flipX = false;     // 水平翻转
    public boolean flipY = false;     // 垂直翻转
    public float originX = 0, originY = 0;// 旋转/缩放原点（默认左下角）
	public boolean isActives = true;//是否可见
	public ShaderProgram customShader = null;//Null默认
	@Override
	protected void reset() {
		color = Color.WHITE;
		sortingOrder = 0;
		flipX = false;
		flipY = false;
		originY = 0;
		originX = 0;
	}



}


